<?php /*a:1:{s:57:"/www/Data/Cloud/application/mobile/view/Index/detail.html";i:1637908140;}*/ ?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>详情</title>
        <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport"/>
        <meta content="yes" name="apple-mobile-web-app-capable"/>
        <meta content="black" name="apple-mobile-web-app-status-bar-style"/>
        <meta content="telephone=no" name="format-detection"/>
        <link href="/yao/css/style.css" rel="stylesheet" type="text/css"/>
    </head>
    <body>

        <section class="aui-flexView">
            <header class="aui-navBar aui-navBar-fixed">
                <a href="/mobile/Index/invit" class="aui-navBar-item">
                    <i class="icon icon-return"></i>
                </a>
                <div class="aui-center">
                    <span class="aui-center-title">详情</span>
                </div>

            </header>
            <section class="aui-scrollView">
                

                <div class="aui-flex">
                    <div class="aui-flex-box">
                        <h6>我的邀请战绩</h6>
                    </div>
                </div>
                <div class="aui-palace">
                    <a href="javascript:;" class="aui-palace-grid">
                        <div class="aui-palace-grid-icon">
                            <span id='haoyou_count'>0</span>
                        </div>
                        <div class="aui-palace-grid-text">
                            <h2>共邀请好友</h2>
                        </div>
                    </a>
                    <a href="javascript:;" class="aui-palace-grid">
                        <div class="aui-palace-grid-icon">
                            <span id="yue" style="color:#f97a11" ></span>
                        </div>
                        <div class="aui-palace-grid-text">
                            <h2>账户余额</h2>
                        </div>
                    </a>
                    <a href="javascript:;" class="aui-palace-grid">
                        <div class="aui-palace-grid-icon">
                            <span style="color:#f97a11" id="total_money"></span>
                        </div>
                        <div class="aui-palace-grid-text">
                            <h2>获得奖励(元)</h2>
                        </div>
                    </a>
                </div>
                <div class="aui-button-btn">
                    <a href="/mobile/Index/tixian"><button>申请提现</button></a>
                </div>
                <div class="divHeight"></div>
                <div class="aui-flex">
                    <div class="aui-flex-box">
                        <h6>邀请记录</h6>
                    </div>
                </div>
                <div class="aui-flex">
                    <div class="aui-flex-box">
                        <span>直推用户</span>
                    </div>
                    <div class="aui-flex-box" style="text-align:right">
                        <span>奖励金额</span>
                    </div>
                </div>
         
                <div class="divHeight"></div>
                <div class="aui-invite-list">
                    
                </div>
            </section>
        </section>
       
        <script src='/static/js/jquery.min.js'></script>
       <script type="text/javascript">
            function closewin(){
                console.log(11);
                AndroidJs.close();
            }
             $.post('/mobile/Index/myinfo', {

            }, function (res) {
                
                var  data = res.data;
                $("#total_money").text(data.total_money);
                $("#haoyou_count").text(data.haoyou_count);
                $("#yue").text(data.yue);
                
             
            }, 'json');
            
            $.post('/mobile/Index/recoed',{},function(res){
                    console.log(res);
                    var list = res.data;
                    list.forEach(function(a,c){
                    var index = "未实名";
                    var nickname = a.nickname;
                    var img = a.img;
                    var yeji = a.yueji;
                    var vip = "";
                    var aui = "aui-no2";
                    if(a.is_merchant == 1){
                        index = "已实名";
                        aui = "aui-no1";
                    }
                    var html ="<a href='javascript:;' class='aui-flex'><div class='aui-user-img'><img src='"+img+"'><span class='"+vip+"'></span></div><div class='aui-flex-box'><h4 class='"+aui+"' style='width: 3.5rem;'>"+index+"</h4><h5>"+nickname+"</h5></div><div class='aui-arrow'><p>"+yeji+"</p></div></a>";
                    $(".aui-invite-list").append(html);
                })
            }, 'json');
        </script>
    </body>
</html>

